﻿<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>水土保持数据上报系统</title>
<style type="text/css">

*{overflow:hidden; font-size:9pt;}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-image: url(images/bg.gif);
	background-repeat: repeat-x;
	background-color: #FFFFFF;
}
</style>
<script language="JavaScript" type="text/JavaScript">
//切换验证码
function reloadVerifyCode()
{
	var codeimg = document.getElementById("verifycode");
	codeimg.src="/security/login_verifyCode.action?random=" + Math.random();
	//alert(codeimg.src);
}

//验证表单数据
function isValid(){
if (document.login.username.value == "")
{
	alert("请输入您的用户名！");
	document.login.username.focus();
	return false;
}
if (document.login.password.value == "")
{
	alert("请输入用户密码！");
	document.login.password.focus();
	return false;
}
if (document.login.verifycode.value == "")
{
	alert("请输入验证码！");
	document.login.verifycode.focus();
	return false;
}

	document.login.submit();
}

</script>
</head>

<body onLoad="reloadVerifyCode();">
<div id="coverdiv"></div>
<table width="100%"  height="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="561" style="background:url(images/lbg.gif)"><table width="940" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="238" style="background:url(images/login01.jpg)">&nbsp;</td>
          </tr>
          <tr>
            <td height="190">         
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="208" height="190" style="background:url(images/login02.jpg)">&nbsp;</td>
                <td width="518" style="background:url(images/login03.jpg)">
                <form name="login" action="/security/login_userLogin.action" method="post" >
                <table width="320" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="40" height="36">&nbsp;</td>
                    <td width="60" height="36">用户名：</td>
                    <td height="36" colspan="2"><input type="text" name="username" value="king power" style="width:164px; height:24px; background:url(images/inputbg.gif) repeat-x; border:solid 1px #d1d1d1; font-size:14pt;"></td>
                  </tr>
                  <tr>
                    <td height="36">&nbsp;</td>
                    <td height="36">密　码：</td>
                    <td height="36" colspan="2"><input type="password" name="password" value="admin" style="width:164px; height:24px; background:url(images/inputbg.gif) repeat-x; border:solid 1px #d1d1d1; font-size:12pt; "></td>
                  </tr>
                  <tr>
                    <td height="36">&nbsp;</td>
                    <td height="36">验证码：</td>
                    <td width="98" height="36"><input name="verifycode" style="width:70px; height:20px; background:url(images/inputbg.gif) repeat-x; border:solid 1px #d1d1d1; font-size:10pt; "></td>
                  	<td width="122" height="36"><img id="verifycode" src="/security/login_verifyCode.action" alt="点击，换一张？" width="65" height="20" onClick="reloadVerifyCode()" style="cursor:pointer" ></td>
                  </tr>
                  <tr>
                    <td height="59" colspan="4" align="center"><img src="images/login.gif" width="95" height="34" border="0" onClick="isValid()" style="cursor:pointer;"></td>
                    </tr>
                </table>
                </form>
                </td>
                <td width="214" style="background:url(images/login04.jpg)" >&nbsp;</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="133" style="background:url(images/login05.jpg)">&nbsp;</td>
          </tr>
        </table>
        </td>
      </tr>
    </table>
    </td>
  </tr>
</table>
</body>
</html>
